package cn.yunhe.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yunhe.biz.ICarerBiz;
import cn.yunhe.dao.CarerMapper;
import cn.yunhe.entity.Carer;
@Service("carerBiz")
public class CarerBizImpl implements ICarerBiz {
	@Autowired
	private CarerMapper carerMapper;
	
	public void setCarerMapper(CarerMapper carerMapper) {
		this.carerMapper = carerMapper;
	}
	

	@Override
	public List<Carer> FindAllCarer() {
		// TODO Auto-generated method stub
		List<Carer> list=null;
		try {
			list = carerMapper.selectByExample(null);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return list;
	}

}
